package com.sunfeng.n6;

import java.math.BigDecimal;

/**
 * @author sunfeng
 * @date 2021/04/14 13:42
 **/
public class DecimalTest {
    public static void main(String[] args) {
        DecimalAccount.demo(new DecimalAccountUnsafe(new BigDecimal("10000")));
        DecimalAccount.demo(new DecimalAccountSafeLock(new BigDecimal("10000")));
        DecimalAccount.demo(new DecimalAccountSafeCas(new BigDecimal("10000")));
    }
}
